#ifndef __IMAGE_JPEG_H
#define __IMAGE_JPEG_H

#include <config.h>

#ifdef JPEG_SUPPORT

#include <types.h>

#define ERR_JPEG_OPEN      -1
#define ERR_JPEG_FORMAT    -2
#define ERR_JPEG_ALLOC_MEM -3
#define ERR_JPEG_FB_ADDR   -4
#define ERR_JPEG_SETJUMP   -5

typedef struct {
	int		width;
	int		height;
	u8		*data;
	BOOLEAN direct_write_to_fb;
} JPEG;

JPEG *load_jpeg(u8 *);

#endif /* JPEG_SUPPORT */
#endif /* __IMAGE_JPEG_H */
